package cn.itsource.ymcc.web.controller;

import cn.itsource.ymcc.domain.LoginLog;
import cn.itsource.ymcc.mapper.LoginLogMapper;
import cn.itsource.ymcc.result.JsonResult;
import cn.itsource.ymcc.service.ILoginService;
import cn.itsource.ymcc.vo.LoginVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
public class AuthController {
    @Autowired
    private ILoginService loginService;

    @RequestMapping("/loginSuccess")
    public JsonResult loginSuccess(@RequestBody LoginVo loginDto){
        System.out.println("实打实的大了看大家都欧克瑟动手动带哦");
        return JsonResult.success().setData(loginService.loginSuccess(loginDto));
	}
}
